package javao.cn.exception;

import lombok.Data;

/**
 * @auther admin闫
 * @Descriptopn 自定义异常类
 * @date 2024/5/29 14:08
 */
@Data
public class WxException extends RuntimeException {
    private String msg;
    private int code = 500;

    public WxException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public WxException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public WxException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public WxException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }
}
